package edu.xidian.bdilab.jrbigdata.controller.bank;

import lombok.Data;
import org.aspectj.apache.bcel.classfile.Code;

public enum BankCode {
    LOGINSUCCESS("1000","金融机构用户登录成功"),
    USERNAME_NULL("1001","用户名不存在,请注册"),
    PASSWORD_WRONG("1002","密码错误"),
    CHENCK_FAILED("1003","查询失败"),
    CHECK_SUCCESS("1004","查询成功"),
    RELEASE_SUCCESS("1005","发布成功"),
    RELEASE_FAILED("1006","发布失败"),
    REGISTER_SUCCESS("1007","金融机构用户注册成功"),
    REGISTER_FAIL_BANKID("1008","用户已存在"),
    REGISTER_FAIL_USERNAME("1009","用户名已存在"),
    PRODUCT_APPLY_SUCCESS("1010","查看成功"),
    CHECK_NONE("1011","未查询到符合条件的数据"),
    DEAL_SUCCESS("1012","交易成功"),
    DEAL_FAILED("1013","交易失败"),
    DEAL_STATICS_SUCCESS("1014","查询统计数据成功"),
    DEAL_STATICS_FAILED("1015","查询统计数据失败"),
    MODIFY_SUCCESS("1016","修改进度成功"),
    MODIFY_FAILED("1017","修改进度失败"),
    REFUSE_SUCCESS("1018","拒绝申请操作成功"),
    REFUSE_FAILED("1019","拒绝申请操作失败"),
    BANK_STATICS_SUCCESS("1020","金融业务统计操作成功"),
    BANK_STATICS_FAILED("1021","金融业务统计操作失败"),
    GET_PRODUCT_APPLYINFO_SUCCESS("1022","获取产品申请详细信息操作成功"),
    GET_PRODUCT_APPLYINFO_FAILED("1023","获取产品申请详细信息操作失败"),
    GET_TOP_PRODUCT_SUCCESS("1024","获取畅销产品成功"),
    GET_TOP_PRODUCT_FAILED("1025","获取畅销产品失败"),
    ;

    private String code;
    private String message;

    BankCode(String code, String message){
        this.code = code;
        this.message = message;
    }

    public void setCode(String code){ this.code = code; }
    public String getCode(){ return this.code; };

    public void setMessage(String message){ this.message = message; }
    public String getMessage(){ return this.message; }
}
